package com.cjw.mapper.livesquare;

import com.cjw.pojo.dto.livesquare.PlanCFDTO;
import com.cjw.pojo.entity.livesquare.PlanCard;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author : cjw
 * @date: : 2022/2/12 12:18
 * @description : PlanCardMapper
 */
@Repository
public interface PlanCardMapper extends Mapper<PlanCard> {
    /**
     * 查看当天有没有打卡
     * @param planId
     * @param userId
     * @return
     */
    Integer queryNowClockCount(Long planId, Long userId);

    Integer deleteNowClock(PlanCard planCard);

    List<PlanCFDTO> queryPlanCardCount(Long userId);
}
